﻿using Inovout.Cloud.Applications.Models;
using Inovout.Security;
using Inovout.Services;
using NHibernate.Criterion;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Inovout.Cloud.Applications.Services
{
    public class HttpApplicationInterfaceService : RepositoryService<HttpApplicationInterface>, IHttpApplicationInterfaceService 
    {
        public IList<HttpApplicationInterface> FindByPrivilegeNotNull()
        {
            return base.Repository.FindAll(Restrictions.IsNotNull("Privileges")).ToList();

        }
    }
}
